package com.itheima.travel.service;

import com.github.pagehelper.PageInfo;
import com.itheima.travel.pojo.Favorite;
import com.itheima.travel.req.FavoriteVo;
import com.itheima.travel.req.RouteVo;

import java.util.List;

public interface FavoriteService {
    //分页查询查询当前用户，我的收藏
    PageInfo<RouteVo> findMyFavorite(FavoriteVo favoriteVo,int pageNumber,int pageSize);

    //是否收藏,查询数据库，如有对应的uid和rid则说明收藏过
    Boolean isFavorite(FavoriteVo favoriteVo);

    //添加收藏,返回影响行数
    Integer addFavorite(FavoriteVo favoriteVo);
}
